package com.zjy.spts.service;

import com.zjy.spts.bean.UserBean;
import com.zjy.spts.mapper.UserDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zjy629 on 2017/11/24.
 */
@Service
public class UserService {
    @Autowired
    private UserDao userDao;


  public   int insertUser(@Param("user")UserBean userBean){
      return  userDao.insertUser(userBean);
  }
  public   UserBean findByName(String name){
      return  userDao.findByName(name);
  }
}
